package com.ruoyi.order.domain;

import java.math.BigDecimal;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品类型对象 tb_product_type
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
public class TbProductType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 类型名称 */
    @Excel(name = "类型名称")
    private String typeName;

    /** 运费 */
    @Excel(name = "运费")
    private BigDecimal freightPrice;

    /** 类型别名 */
    @Excel(name = "类型别名")
    private String typeOtherName;

    private List<TbProductWholesale> wholesaleList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }

    public void setFreightPrice(BigDecimal freightPrice) 
    {
        this.freightPrice = freightPrice;
    }

    public BigDecimal getFreightPrice() 
    {
        return freightPrice;
    }

    public void setTypeOtherName(String typeOtherName) 
    {
        this.typeOtherName = typeOtherName;
    }

    public String getTypeOtherName() 
    {
        return typeOtherName;
    }

    public List<TbProductWholesale> getWholesaleList() {
        return wholesaleList;
    }

    public void setWholesaleList(List<TbProductWholesale> wholesaleList) {
        this.wholesaleList = wholesaleList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("typeName", getTypeName())
            .append("freightPrice", getFreightPrice())
            .append("typeOtherName", getTypeOtherName())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .toString();
    }
}
